﻿﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using WorldMapBase;
using WorldMapBase.Tile;
using WorldMapBase.Tile.Pool;
using WorldMapNew;
using static WorldMapBase.WorldMapConfigData;

// 地图出生点 装饰物功能集合
public class MapPoint
{
    public int tileResId = -1;
    public AdornObject tileObj;

    public float point_x;
    public float point_y;

    public MapPoint(float point_x, float point_y)
    {
        this.point_x = point_x;
        this.point_y = point_y;
    }

    public void Dispose()
    {
        tileResId = -1;
        if (tileObj != null)
        {
            WorldPoolManager.RecoverItem(tileObj);
        }
        tileObj = null;
    }
}